package com.jzo2o.customer.controller.agency;


import com.jzo2o.api.customer.dto.request.InstitutionStaffPageQueryReqDTO;
import com.jzo2o.api.customer.dto.response.InstitutionStaffResDTO;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.customer.model.domain.AgencyCertificationAuditor;
import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditAddReqDTO;
import com.jzo2o.customer.model.dto.request.InstitutionStaffUpsertReqDTO;
import com.jzo2o.customer.model.dto.response.AgencyCertificationResDTO;
import com.jzo2o.customer.model.dto.response.InstitutionStaffSimpleResDTO;
import com.jzo2o.customer.service.IAgencyCertificationAuditorService;
import com.jzo2o.customer.service.IAgencyCertificationService;
import com.jzo2o.customer.service.IInstitutionStaffService;
import com.jzo2o.mvc.utils.UserContext;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 机构下属服务人员 前端控制器
 * </p>
 *
 * @author itcast
 * @since 2023-07-18
 */
@RestController("agencyCertificationController")
@RequestMapping("/agency/agency-certification-audit")
@Api(tags = "机构端 - 机构下属服务人员相关接口")
public class AgencyCertificationController {
    @Resource
    private IAgencyCertificationService agencyCertificationService;

    @Resource
    private IAgencyCertificationAuditorService agencyCertificationAuditorService;

    @PostMapping
    @ApiOperation("提交认证")
    public void add(@RequestBody AgencyCertificationAuditAddReqDTO reqDTO){
        agencyCertificationService.add(reqDTO);
    }

    @GetMapping("/rejectReason")
    @ApiOperation("获取验证失败字符串")
    public AgencyCertificationAuditor rejectReason(){
      return  agencyCertificationAuditorService.rejectReason();
    }

}
